// 
// api.js
// hs-admin
// 
// 2024/10/28.
// 

import request from "@/request"

/**
 * 查询我的 debug 任务
 * @param data
 * @returns {*}
 * @constructor
 */
export function GetDebugList( data = {}) {
    return request({url: '/api/DebugInfo/GetDebugList', method: 'post', data})
}

/**
 * 查询主机数据
 * @param params
 * @returns {Promise | Promise<unknown> | *}
 * @constructor
 */
export function GetDeviceAndComputerStatistics(params = {}) {
    return request({url: '/api/Statistics/GetDeviceAndComputerStatistics', method: 'get', params})
}

/**
 * 程序版本图表信息
 * @param params
 * @returns {Promise | Promise<unknown> | *}
 * @constructor
 */
export function GetProgAndVersionStatistics(params = {}) {
    return request({url: '/api/Statistics/GetProgAndVersionStatistics', method: 'get', params})
}

/**
 * 查询我的 debug 任务数据
 * @param params
 * @returns {*}
 * @constructor
 */
export function GetDebugInfoByCurrentUser(params = {}) {
    return request({url: '/api/DebugInfo/GetDebugInfoByCurrentUser', method: 'get', params})
}

/**
 * 查询IP 变更的主机数量
 * @param params
 * @returns {Promise | Promise<unknown> | *}
 * @constructor
 */
export function GetIpChangeComputerCount(params = {}) {
    return request({url: '/api/Computer/GetIpChangeComputerCount', method: 'get', params})
}

/**
 * 获取全部主机列表
 * @param data
 * @returns {Promise | Promise<unknown> | *}
 * @constructor
 */
export function GetComputerList(data = {}) {
    return request({url: '/api/Computer/GetComputerList', method: 'post', data})
}

